From bf9ceab0bea07afd9a5a661d9e7a043cb96daf84 Mon Sep 17 00:00:00 2001 From: Jeremy Bryant Date: Mon, 1 Apr 2024 16:33:26 +0100 Subject: [PATCH] ; which-key.el: Display mode in error message * which-key.el (which-key-add-major-mode-key-based-replacements): Display mode in error message --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index f2f86269fc1..781fee9683c 100644 --- a/which-key.el +++ b/which-key.el @@ -1085,7 +1085,7 @@ addition KEY-SEQUENCE REPLACEMENT pairs) to apply." (declare (indent defun)) ;; TODO: Make interactive (when (not (symbolp mode)) - (error "MODE should be a symbol corresponding to a value of major-mode")) + (error "`%S' should be a symbol corresponding to a value of major-mode" mode)) (let ((mode-alist (or (cdr-safe (assq mode which-key-replacement-alist)) (list))) (title-mode-alist -- 2.30.2